#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([livedico], [svn], [http://code.google.com/p/livedico/issues/list])
AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
AC_CONFIG_SRCDIR([src/functions.cpp])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_RANLIB

#Search svn to get version
AC_ARG_VAR([SVNVERSION_BIN], [svnversion tool to get actual revision])
AC_PATH_PROG([SVNVERSION_BIN], [svnversion])

# Checks for libraries.
AC_CHECK_LIB(stdc++, main)
AC_REPLACE_FUNCS(rand_r)

# Checks for header files.
AC_CHECK_HEADERS([float.h stdlib.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_OPENMP

# Checks for library functions.
AC_CHECK_FUNCS([modf strtoul])

AC_CONFIG_FILES([Makefile src/Makefile src/rules/Makefile])
AC_OUTPUT
